﻿using Assets._Script.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Assets._Script.Entity
{
    public class Bird : Pet,IFly
    {
        public Bird() { }
        public Bird(string name, string type, int age, string color) : base(name, type, age, color)
        {
        }

        //实现抽象父类 Pet 中的抽象方法 Cry()
        public override void Cry()
        {
            Debug.Log($"{this.Type}:{this.Name}正在渣渣渣地叫......");
        }

        public void Fly()
        {
            Debug.Log($"{this.Type}:{this.Name}在空中扑棱这两个小翅膀飞翔........");
        }
    }
}
